Optimal. Leaf size=113 \[ -\frac{2 \sqrt{f+g x} \left (a g^2+c f^2\right ) (e f-d g)}{g^4}+\frac{2 (f+g x)^{3/2} \left (a e g^2+c f (3 e f-2 d g)\right )}{3 g^4}-\frac{2 c (f+g x)^{5/2} (3 e f-d g)}{5 g^4}+\frac{2 c e (f+g x)^{7/2}}{7 g^4} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.176672, antiderivative size = 113, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.045 \[ -\frac{2 \sqrt{f+g x} \left (a g^2+c f^2\right ) (e f-d g)}{g^4}+\frac{2 (f+g x)^{3/2} \left (a e g^2+c f (3 e f-2 d g)\right )}{3 g^4}-\frac{2 c (f+g x)^{5/2} (3 e f-d g)}{5 g^4}+\frac{2 c e (f+g x)^{7/2}}{7 g^4} \]
Antiderivative was successfully verified.
[In] Int[((d + e*x)*(a + c*x^2))/Sqrt[f + g*x],x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 23.0326, size = 112, normalized size = 0.99 \[ \frac{2 c e \left (f + g x\right )^{\frac{7}{2}}}{7 g^{4}} + \frac{2 c \left (f + g x\right )^{\frac{5}{2}} \left (d g - 3 e f\right )}{5 g^{4}} + \frac{2 \left (f + g x\right )^{\frac{3}{2}} \left (a e g^{2} - 2 c d f g + 3 c e f^{2}\right )}{3 g^{4}} + \frac{2 \sqrt{f + g x} \left (a g^{2} + c f^{2}\right ) \left (d g - e f\right )}{g^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((e*x+d)*(c*x**2+a)/(g*x+f)**(1/2),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0994581, size = 94, normalized size = 0.83 \[ \frac{2 \sqrt{f+g x} \left (35 a g^2 (3 d g-2 e f+e g x)+7 c d g \left (8 f^2-4 f g x+3 g^2 x^2\right )-3 c e \left (16 f^3-8 f^2 g x+6 f g^2 x^2-5 g^3 x^3\right )\right )}{105 g^4} \]
Antiderivative was successfully verified.
[In] Integrate[((d + e*x)*(a + c*x^2))/Sqrt[f + g*x],x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.007, size = 101, normalized size = 0.9 \[{\frac{30\,ce{x}^{3}{g}^{3}+42\,cd{g}^{3}{x}^{2}-36\,cef{g}^{2}{x}^{2}+70\,ae{g}^{3}x-56\,cdf{g}^{2}x+48\,ce{f}^{2}gx+210\,ad{g}^{3}-140\,aef{g}^{2}+112\,cd{f}^{2}g-96\,ce{f}^{3}}{105\,{g}^{4}}\sqrt{gx+f}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((e*x+d)*(c*x^2+a)/(g*x+f)^(1/2),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 0.694818, size = 140, normalized size = 1.24 \[ \frac{2 \,{\left (15 \,{\left (g x + f\right )}^{\frac{7}{2}} c e - 21 \,{\left (3 \, c e f - c d g\right )}{\left (g x + f\right )}^{\frac{5}{2}} + 35 \,{\left (3 \, c e f^{2} - 2 \, c d f g + a e g^{2}\right )}{\left (g x + f\right )}^{\frac{3}{2}} - 105 \,{\left (c e f^{3} - c d f^{2} g + a e f g^{2} - a d g^{3}\right )} \sqrt{g x + f}\right )}}{105 \, g^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((c*x^2 + a)*(e*x + d)/sqrt(g*x + f),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.272993, size = 135, normalized size = 1.19 \[ \frac{2 \,{\left (15 \, c e g^{3} x^{3} - 48 \, c e f^{3} + 56 \, c d f^{2} g - 70 \, a e f g^{2} + 105 \, a d g^{3} - 3 \,{\left (6 \, c e f g^{2} - 7 \, c d g^{3}\right )} x^{2} +{\left (24 \, c e f^{2} g - 28 \, c d f g^{2} + 35 \, a e g^{3}\right )} x\right )} \sqrt{g x + f}}{105 \, g^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((c*x^2 + a)*(e*x + d)/sqrt(g*x + f),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 23.5858, size = 374, normalized size = 3.31 \[ \begin{cases} - \frac{\frac{2 a d f}{\sqrt{f + g x}} + 2 a d \left (- \frac{f}{\sqrt{f + g x}} - \sqrt{f + g x}\right ) + \frac{2 a e f \left (- \frac{f}{\sqrt{f + g x}} - \sqrt{f + g x}\right )}{g} + \frac{2 a e \left (\frac{f^{2}}{\sqrt{f + g x}} + 2 f \sqrt{f + g x} - \frac{\left (f + g x\right )^{\frac{3}{2}}}{3}\right )}{g} + \frac{2 c d f \left (\frac{f^{2}}{\sqrt{f + g x}} + 2 f \sqrt{f + g x} - \frac{\left (f + g x\right )^{\frac{3}{2}}}{3}\right )}{g^{2}} + \frac{2 c d \left (- \frac{f^{3}}{\sqrt{f + g x}} - 3 f^{2} \sqrt{f + g x} + f \left (f + g x\right )^{\frac{3}{2}} - \frac{\left (f + g x\right )^{\frac{5}{2}}}{5}\right )}{g^{2}} + \frac{2 c e f \left (- \frac{f^{3}}{\sqrt{f + g x}} - 3 f^{2} \sqrt{f + g x} + f \left (f + g x\right )^{\frac{3}{2}} - \frac{\left (f + g x\right )^{\frac{5}{2}}}{5}\right )}{g^{3}} + \frac{2 c e \left (\frac{f^{4}}{\sqrt{f + g x}} + 4 f^{3} \sqrt{f + g x} - 2 f^{2} \left (f + g x\right )^{\frac{3}{2}} + \frac{4 f \left (f + g x\right )^{\frac{5}{2}}}{5} - \frac{\left (f + g x\right )^{\frac{7}{2}}}{7}\right )}{g^{3}}}{g} & \text{for}\: g \neq 0 \\\frac{a d x + \frac{a e x^{2}}{2} + \frac{c d x^{3}}{3} + \frac{c e x^{4}}{4}}{\sqrt{f}} & \text{otherwise} \end{cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((e*x+d)*(c*x**2+a)/(g*x+f)**(1/2),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.265687, size = 209, normalized size = 1.85 \[ \frac{2 \,{\left (105 \, \sqrt{g x + f} a d + \frac{35 \,{\left ({\left (g x + f\right )}^{\frac{3}{2}} - 3 \, \sqrt{g x + f} f\right )} a e}{g} + \frac{7 \,{\left (3 \,{\left (g x + f\right )}^{\frac{5}{2}} g^{8} - 10 \,{\left (g x + f\right )}^{\frac{3}{2}} f g^{8} + 15 \, \sqrt{g x + f} f^{2} g^{8}\right )} c d}{g^{10}} + \frac{3 \,{\left (5 \,{\left (g x + f\right )}^{\frac{7}{2}} g^{18} - 21 \,{\left (g x + f\right )}^{\frac{5}{2}} f g^{18} + 35 \,{\left (g x + f\right )}^{\frac{3}{2}} f^{2} g^{18} - 35 \, \sqrt{g x + f} f^{3} g^{18}\right )} c e}{g^{21}}\right )}}{105 \, g} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((c*x^2 + a)*(e*x + d)/sqrt(g*x + f),x, algorithm="giac")
[Out]